import Layout from '@/page/index/index.vue';
import Store from '@/store/';

export default [
  {
    path: '/wel',
    component: () =>
      Store.getters.isMacOs ? import('@/mac/index.vue') : import('@/page/index/index.vue'),
    redirect: '/wel/index',
    children: [
      {
        path: 'index',
        name: '首页',
        meta: {
          i18n: 'dashboard',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/wel/index.vue'),
      },
      {
        path: 'dashboard',
        name: '控制台',
        meta: {
          i18n: 'dashboard',
          menu: false,
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/wel/dashboard.vue'),
      },
    ],
  },
  {
    path: '/test',
    component: Layout,
    redirect: '/test/index',
    children: [
      {
        path: 'index',
        name: '测试页',
        meta: {
          i18n: 'test',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/util/test.vue'),
      },
    ],
  },
  {
    path: '/dict-horizontal',
    component: Layout,
    redirect: '/dict-horizontal/index',
    children: [
      {
        path: 'index',
        name: '字典管理',
        meta: {
          i18n: 'dict',
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal.vue'),
      },
    ],
  },
  {
    path: '/dict-vertical',
    component: Layout,
    redirect: '/dict-vertical/index',
    children: [
      {
        path: 'index',
        name: '字典管理',
        meta: {
          i18n: 'dict',
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical.vue'),
      },
    ],
  },
  {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [
      {
        path: 'index',
        name: '个人信息',
        meta: {
          i18n: 'info',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/system/userinfo.vue'),
      },
    ],
  },
  {
    path: '/work/process/leave',
    component: Layout,
    redirect: '/work/process/leave/form',
    children: [
      {
        path: 'form/:processDefinitionId',
        name: '请假流程',
        meta: {
          i18n: 'work',
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/work/process/leave/form.vue'),
      },
      {
        path: 'handle/:taskId/:processInstanceId/:businessId',
        name: '处理请假流程',
        meta: {
          i18n: 'work',
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/work/process/leave/handle.vue'),
      },
      {
        path: 'detail/:processInstanceId/:businessId',
        name: '请假流程详情',
        meta: {
          i18n: 'work',
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/work/process/leave/detail.vue'),
      },
    ],
  },
  // {
  //   path: '/scaleTemplate/add',
  //   name: '新 增',
  //   meta: {
  //     i18n: 'work'
  //   },
  //   component: () =>
  //     import( /* webpackChunkName: "views" */ '@/views/scaleTemplate/components/add.vue')
  // },
  {
    path: '/add',
    component: Layout,
    redirect: '/add',
    children: [
      {
        path: '',
        name: 'CRF新增',
        meta: {
          i18n: 'add',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/scaleTemplate/components/add.vue'),
      },
    ],
  },
  {
    path: '/scaleTemplate',
    component: Layout,
   
    children: [
      {
        path: 'formDesign',
        name: '表单设计',
        meta: {
          i18n: 'formDesign',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/scaleTemplate/components/formDesign.vue'),
      },
      {
        path: 'formUse',
        name: '表单使用',
        meta: {
          i18n: 'formDesign',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/scaleTemplate/components/formUse.vue'),
      },
    ],
  },
  {
    path: '/trial',
    component: Layout,
   
    children: [
      {
        path: 'menu',
        name: '操作',
        meta: {
          i18n: 'menu',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/menu.vue'),
      },
    ],
  },
  {
    path: '/trial',
    component: Layout,
   
    children: [
      {
        path: 'groupTab',
        name: '分组设置菜单',
        meta: {
          i18n: 'groupTab',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/groupMneu/groupTab.vue'),
      },
    ],
  },
  {
    path: '/trial',
    component: Layout,
   
    children: [
      {
        path: 'allocation',
        name: '分配结果',
        meta: {
          i18n: 'allocation',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/deptAllMenu/allocation.vue'),
      },
    ],
  },
  {
    path: '/trial',
    component: Layout,
   
    children: [
      {
        path: 'caseBase',
        name: '病例库',
        meta: {
          i18n: 'caseBase',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/caseBase.vue'),
      },
    ],
  },
  {
    path: '/trial',
    component: Layout,
   
    children: [
      {
        path: 'gather',
        name: '采集',
        meta: {
          i18n: 'gather',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/gather.vue'),
      },
    ],
  },
  {
    path: '/trial',
    component: Layout,
   
    children: [
      {
        path: 'groupFlow',
        name: '流程库',
        meta: {
          i18n: 'groupFlow',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/groupMneu/groupFlow.vue'),
      },
    ],
  },
  {
    path: '/trial',
    component: Layout,
   
    children: [
      {
        path: 'variable',
        name: '变量挑选',
        meta: {
          i18n: 'variable',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/dataExportMenu/variable.vue'),
      },
    ],
  },
  {
    path: '/trial',
    component: Layout,
   
    children: [
      {
        path: 'variableAdd',
        name: '变量挑选新增',
        meta: {
          i18n: 'variableAdd',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/dataExportMenu/variableAdd.vue'),
      },
    ],
  },
  {
    path: '/casemanagement',
    component: Layout,
   
    children: [
      {
        path: 'tabs',
        name: '操作栏',
        meta: {
          i18n: 'tabs',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/casemanagement/components/tabs.vue'),
      },
    ],
  },
  {
    path: '/casemanagement',
    component: Layout,
   
    children: [
      {
        path: 'addCaseForm',
        name: '添加病例',
        meta: {
          i18n: 'addCaseForm',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/casemanagement/components/VRormRenderForm.vue'),
      },
    ],
  },
  {
    path: '/scaleTemplate',
    component: Layout,
    children: [
      {
        path: 'customData',
        name: '其他定制数据',
        meta: {
          i18n: 'customData',
        
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/trial/components/groupManage/customData.vue'),
      },
    ],
  },

];
